﻿using System;
using System.Collections.Generic;

using System.Text;
using QUANLYCHAMCONG.DAO.DAO;
using QUANLYCHAMCONG.BL.Entities;

namespace QUANLYCHAMCONG.BL.BUS
{
    public class CT_TANGCABUS
    {
        public CT_TANGCABUS() { }
        public static bool Insert(CT_TANGCA ls)
        {
            CT_TANGCADAO dao = new CT_TANGCADAO();
            return dao.Insert(ls);
        }
        public static bool Update(CT_TANGCA ls)
        {
            CT_TANGCADAO dao = new CT_TANGCADAO();
            return dao.Update(ls);
        }
        public static bool Delete(CT_TANGCA tc)
        {
            CT_TANGCADAO dao = new CT_TANGCADAO();
            return dao.Delete(tc);
        }
        public static bool Delete(int? flag,CT_TANGCA tc)
        {
            CT_TANGCADAO dao = new CT_TANGCADAO();
            return dao.Delete(flag,tc);
        }
    }
}
